package cn.lanqiao.system;

import org.mybatis.generator.api.MyBatisGenerator;
import org.mybatis.generator.config.Configuration;
import org.mybatis.generator.config.xml.ConfigurationParser;
import org.mybatis.generator.internal.DefaultShellCallback;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import static com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolver.length;

/**
 * Hello world!
 *
 */
public class App
{

    public static void main(String[] args) {
        String s="1号2号3号";
        List<Integer> list=new ArrayList<>();
        for(int i=0;i<s.length();i++){
            String ss=String.valueOf(s.charAt(i));
            System.out.println("ss字符："+ss);

            if(ss.equals("号")){
                 list.add(i);
                System.out.println("i----"+i);
            }
        }

         int a=list.size();
        System.out.println("数组ii："+list);
        System.out.println("a的长度："+a);
    }

}


